// DeMillo/Offutt
public class TriangleType01 {

	public static void main(String[] Argv) {
		classify(0, 1, 2);
	}

	public static int classify(int i, int j, int k) {
		if ((i <= 0) || (j <= 0) || (k <= 0)) {
			return 4;
		}
		int type = 0;
		if (i == j) {
			type = type + 1;
		}
		if (i == k) {
			type = type + 2;
		}
		if (j == k) {
			type = type + 3;
		}
		if (type == 0) {
			// Confirm it is a legal triangle before declaring it to be scalene.
			if ((i + j <= k) || (j + k <= i) || (i + k >= j)) {
				type = 4;
			} else {
				type = 1;
			}
			return type;
		}
		// Confirm it is a legal triangle before declaring it to be isosceles or
		// equilateral.
		if (type > 3) {
			type = 3;
		} else if ((type == 1) && (i + j > k)) {
			type = 2;
		} else if ((type == 2) && (i + k > j)) {
			type = 2;
		} else if ((type == 3) && (j + k > i)) {
			type = 2;
		} else {
			type = 4;
		}
		return type;
	}

}